import { path } from "../../config/path";
import request from './request';

/** 已绑定的机构列表 GET /manage/get_bind_platform_list */
export async function get_bind_platform_list(body: any, options?: any) {
  return request(path + '/manage/get_bind_platform_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 可绑定的机构列表 GET /manage/get_bind_platform_select */
export async function bind_platform_select(body?: any, options?: any) {
  return request(path + '/manage/get_bind_platform_select', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 新增关联机构申请 POST /manage/add_bind_platform */
export async function bind_platform(body?: any, options?: any) {
  return request(path + '/manage/add_bind_platform', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 我发起的列表 GET /manage/bind_platform_application_list */
export async function bind_platform_application_list(body?: any, options?: any) {
  return request(path + '/manage/bind_platform_application_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 我收到的列表 GET /manage/bind_myplatform_application_list */
export async function bind_myplatform_application_list(body?: any, options?: any) {
  return request(path + '/manage/bind_myplatform_application_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 审批详情 GET /manage/bind_platform_application_info */
export async function bind_platform_application_info(body?: any, options?: any) {
  return request(path + '/manage/bind_platform_application_info', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 申请审批 POST /manage/permission_bind_platform */
export async function permission_bind_platform(body?: any, options?: any) {
  return request(path + '/manage/permission_bind_platform', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 解绑 POST /manage/unbind_platform */
export async function unbind_platform(body?: any, options?: any) {
  return request(path + '/manage/unbind_platform', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 解绑记录列表 GET /manage/unbind_platform_list */
export async function unbind_platform_list(body?: any, options?: any) {
  return request(path + '/manage/unbind_platform_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 医生可切换的机构列表（下拉框) GRT /manage/get_doctor_platform_select */
export async function doctor_platform_select(body?: any, options?: any) {
  return request(path + '/manage/get_doctor_platform_select', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 切换机构 POST /manage/change_platform */
export async function change_platform(body?: any, options?: any) {
  return request(path + '/manage/change_platform', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 机构列表（下拉框） GRT /manage/get_platform_select */
export async function platform_select(body?: any, options?: any) {
  return request(path + '/manage/get_platform_select', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
